
    	<div class="page-header">
    		<h1>Gallery</h1>
        </div>
            
        <div class="row-fluid">

                <h3 class="header">Unit 1 Pictures
                    <span class="header-line"></span> 
                </h3>
                
                <ul class="portfolio thumbnails ">
				
				<?php
			$dir = "themes/hebo/img/slider/flickr/";
			if ($handle = opendir($dir)) {
				/* This is the correct way to loop over the directory. */
				while (false !== ($entry = readdir($handle))) {
					if(filetype($dir.$entry)!='dir'){
					//echo "$entry\n";
				?>
				<li class="span6">
                    <a href="img/portfolio/<?php echo $entry; ?>" rel="lightbox"  class="thumbnail"><img src="<?php echo Yii::app()->theme->baseUrl;?>/img/portfolio/<?php echo $entry; ?>" alt="" class="img-polaroid"></a>
                  </li>
				<?php
				}
				}

				closedir($handle);
			}
			?>
				
                  <!--<li class="span6">
                    <a href="img/portfolio/1.jpg" rel="lightbox"  class="thumbnail"><img src="<?php echo Yii::app()->theme->baseUrl;?>/img/portfolio/1.jpg" alt="" class="img-polaroid"></a>
                  </li>
                  
                  <li class="span6">
                    <a href="img/portfolio/2.jpg" rel="lightbox"  class="thumbnail"><img src="<?php echo Yii::app()->theme->baseUrl;?>/img/portfolio/2.jpg" alt="" class="img-polaroid"></a>
                  </li>
                  
                  <li class="span6">
                    <a href="img/portfolio/3.jpg" rel="lightbox"  class="thumbnail"><img src="<?php echo Yii::app()->theme->baseUrl;?>/img/portfolio/3.jpg" alt="" class="img-polaroid"></a>
                  </li>
                  
                  <li class="span6">
                    <a href="img/portfolio/4.jpg" rel="lightbox"  class="thumbnail"><img src="<?php echo Yii::app()->theme->baseUrl;?>/img/portfolio/4.jpg" alt="" class="img-polaroid"></a>
                  </li>-->
           
    			
                </ul>
                
                
                </div><!-- /row-fluid -->